﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FazaDemo.BL.DataAccess;

namespace FazaDemo.BL.Factories
{
    public class SuppleRepositoryFactory : ISuppleRepositoryFactory
    {
        public IInfoEntityRepository Create(int ecqId)
        {
            if (ecqId == 2014)
            {
                return new TsRayonRepository();
            }
            if (ecqId == 2001)
            {
                return new TsDistrictRepository();
            }
            if (ecqId == 2015)
            {
                return new TsStreetRepository();
            }
            return null;
        }
    }
}
